<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="one"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>更新博客 - 美妆产品销售系统</title>
		<%@ include file="/common/include/head_title.jsp"%>
		<script type="text/javascript"
			src="${rootPath}/common/resource/ueditor/ueditor.config.js"></script>
		<script type="text/javascript"
			src="${rootPath}/common/resource/ueditor/ueditor.all.min.js"> </script>
		<script type="text/javascript"
			src="${rootPath}/common/resource/ueditor/lang/zh-cn/zh-cn.js"></script>
	</head>
	<body>
		<jsp:include page="/IndexHeadServlet">
			<jsp:param value="header" name="method"/>
		</jsp:include>
		<section class="page-content-wrapper pt-100 pb-40">
			<!-- checkout-area start -->
		<div class="checkout-area">
			<div class="container">
				<div class="row">
					<form action="${rootPath }/head/UsersHeadServlet?method=blogUpdateSubmit" method="post">
						<input type="hidden" name="id" value="${one.id }">
						<input type="hidden" name="operType" value="${param.operType}">
						<div class="col-lg-11 col-md-11">
							<div class="checkbox-form">
								<h3>更新博客</h3>
								<div class="row">
									<div class="col-md-12">
										<div class="checkout-form-list">
											<label>名称:</label>
											<input type="text" placeholder="名称" name="name" value="${one.name }">
										</div>
									</div>
									<div class="col-md-12">
										<div class="checkout-form-list">
											<label>内容:</label>
											<script name="content" id="editor" type="text/plain" style="width: 100%; height: 200px;">${one.content}</script>
										</div>
									</div>
									<div class="col-md-12">
										<div class="checkout-form-list">
											<input type="submit" value="提交" class="">
										</div>
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
		<!-- checkout-area end -->	
		</section>
		<%@ include file="/common/include/head_footer.jsp"%>
	</body>
</html>
<script type="text/javascript">
$(function(){
	/* 初始化百度编辑器 */
	var ue = UE.getEditor('editor');
});
</script>